
/*
 * (C)opyright 2010, Alessandro Agosto. All rights reserved.
 * This file is part of the "pycoev" project.
 * To get more informations about the license read the LICENSE file.
 *
 * Main events header. Includes the event library and defines the 
 * PYC_EVENT_BACKEND macro.
 */


#pragma once
#ifndef _PYC_EVENT_H
#define _PYC_EVENT_H


#include "pyc_os_specs.h"


#ifdef  PYC_OS_WIN32
#   include "picoev_w32.h"
#else /*other posix, *nix systems*/
#   include "picoev.h"
#endif /* PYC_OS_WIN32 */


/*define the backend in use*/
#ifdef PYC_OS_LINUX2
#   define PYC_EVENT_BACKEND "epoll"
#elif PYC_OS_FREEBSD
#   define PYC_EVENT_BACKEND "kqueue"
#else
#   define PYC_EVENT_BACKEND "select"
#endif /* os recognition */


#define PYC_ERROR -1 /*on error picoev returns -1*/


#endif /* _PYC_EVENT_H */
